package messages;

public class ConnectTo implements GameMessage {
	private String server;
	private int port;
	
	public ConnectTo(String server, String port){
		if(!port.matches("\\d+"))
			return;
		this.server = server;
		this.port = Integer.parseInt(port);
	}
	
	public String getServer(){
		return server;
	}
	
	public int getPort(){
		return port;
	}
	
	@Override
	public String getMessage() {
		return null;
	}

	@Override
	public void setMessage(String message) {
	}

}
